package com.cd.learn.cdlearn.pattern.command;

import java.util.HashMap;

/**
 * 命令的参数或者命令所需要的内容，不是命令本身
 */
public class CommandParam {

    private HashMap<String, Integer> map = new HashMap<String, Integer>();

    private CommandReceive commandReceive;


    public HashMap<String, Integer> getMap() {
        return map;
    }

    public void setMap(HashMap<String, Integer> map) {
        this.map = map;
    }

    public CommandReceive getCommandReceive() {
        return commandReceive;
    }

    public void setCommandReceive(String name, int num) {
        map.put(name, num);
    }
}
